<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane :label="item" v-for='(item,i) in label' :key='i' :name="i+''"></el-tab-pane>
    </el-tabs>
    <!-- <div class="outside">
      <tab-item v-for='(item,i) in label' :key='i' :item='item' @click.native="changeActive" :isactive='isactive'></tab-item>
    </div> -->
</template>

<script>
import {request} from 'network/request'
// import tabItem from './TabItem'
export default {
  name:'Tabs',
  props:{
    labels:{
      type:Array,
      default(){
        return []
      }
    }
  },
  components:{
    // tabItem
  },
  data(){
    return {
      activeName:'0',
      label : this.labels,
      isactive:false
    }
  },
  methods:{
    handleClick(tab,event){
      // console.log(this.activeName)
      this.$emit('handleClick',tab,event)
      
    }
  },
  
}
</script>

<style scoped>
  .outside{
    display: flex;
  }
</style>